//
//  UIView+TYSubview.m
//  TYUIKit
//
//  Created by TuyaInc on 2018/12/20.
//

#import "UIView+TYSubview.h"

@implementation UIView (TYSubview)

- (void)ty_removeAllSubviews {
    while (self.subviews.count) {
        UIView *child = self.subviews.lastObject;
        [child removeFromSuperview];
    }
}

@end
